package fa.wangxing.leaf.Mapper;


import fa.wangxing.leaf.pojo.Cart;
import fa.wangxing.leaf.pojo.Dishes;
import fa.wangxing.leaf.pojo.Order;
import fa.wangxing.leaf.pojo.Orderitems;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {

    public List<Cart> getcart(int user_id);
    public List<Order> getorder(int user_id);
    public void cleancart(int user_id);
    public void createorder(Order order);
    public int getnewestorder(int order_id);
    public void additem(Orderitems item);
    public List<Dishes> getdishes(int order_id);
    public Order getOrderbyid(int order_id);
    public void cancleorder(int order_id);
    public void payorder(int order_id);
}
